{include_core file="m/lib/header.html" title="商品图文详情-联想NBD商城"}
{load_css file="css/m-state.css"}
<div class="content">
    <div class="bom-warp">{$goods_info.content}</div>
    <div class="bom-warp">{$goods_info.technical}</div>
</div>
  <!--content end-->

    {if $goods_info.is_sale && goods_helper::get_stock_by_id($goods_info.id) != 0}
      <!--吸底 begin-->
      <div id="ab_border">
        <div id="absorb">
          {if cart_helper::can_add_cart($goods_info.id) === true}
          <a class="ab_btn1 car-btn" href="javascript:void(0);">加入购物车</a>
          {/if}
          <a class="ab_btn2" href="{AnUrl("goods/{$goods_info.id}")}">立即购买</a>
          <div class="ab_cart">
            <a href="{AnUrl('cart')}"><img src="{$smarty.const.STATIC_URL}/images/m2-images/buy-car.png"/></a>
            <p>购物车</p>
          </div>
        </div>
      </div>
      <!--吸底 end-->
    {/if}
  <!--返回顶端-->
<div class="return_top js_return_top hidden"><img src="{$smarty.const.STATIC_URL}/images/m2-images/top_1.png"/></div>
{load_js file="app/goods.js"}
{load_js file="jquery.scrollTo.min.js"}
<script type="text/javascript">
  var goodsId = {$goods_info.id};
  var skuList = {$sku_list|json_encode};
  if (skuList.length == 1) {
    var checkedSkuId = skuList[0].id
  } else {
    var checkedSkuId = 0;
  }
  var propertyIds = {$property|json_encode};
  var stock  = {$stock};
  var flagship = {$goods_info.flagship};
  var flagship_link = '{$goods_info.flagship_link}';

  $(function(){
  //右侧边栏控制
  var rightBox = $('.js_return_top');
  document.onscroll = function() {
      var docTop = document.body.scrollTop | document.documentElement.scrollTop;
      if (docTop > 200) {
        rightBox.removeClass("hidden");
      }
      if (docTop < 200) {
        rightBox.addClass("hidden");
      }
  }
  $('.js_return_top').click(function(){
    $.scrollTo('body', 500);
  })
  
});
</script>
</div>
</div>
<div id="baiduTongji" style="display:none;">
  {setting_helper::get_value('statistics_code', 1)}
</div>
</body>
</html>